{% extends 'base.html' %}

{% block body %}
<body>
    {% include 'flash.html' %}

  <div class="login-page">
    <div class="login-box">
      <div class="card">
        <div class="card-header text-center">
          <h4>登录</h4>
        </div>

        <div class="card-body">
          <form method="POST">
            {{ form.hidden_tag() }} <!-- Include CSRF token -->

          <div class="input-group mb-3">
            {{ form.username(class="form-control", placeholder="用户名") }}
          </div>

          <div class="input-group mb-3">
            {{ form.password(class="form-control", placeholder="密码") }}
          </div>

          <div class="row">

              <div class="col-4">
                  {{ form.sub_login(class="btn btn-primary btn-block") }}
              </div>
            <div class="col-4">
              {{ form.sub_register(class="btn btn-primary btn-block") }}
            </div>

          </div>
          </form>
        </div>
      </div>
    </div>
  </div>
</body>

{% endblock %}